<div class="layui-card">
    <div class="layui-card-body">

        <form class="layui-form" action="" method="post" id="cp-form">

            <div class="layui-tab layui-tab-brief">
                <ul class="layui-tab-title">
                    <li class="layui-this">网站信息</li>
                    <li>SEO设置</li>
                </ul>
                <div class="layui-tab-content">
                    <div class="layui-tab-item layui-show">

                        <div class="layui-form-item">
                            <label class="layui-form-label">网站名称 <span class="request-tips">*</span></label>
                            <div class="layui-input-block">
                                <input type="text" name="site_info[site_name]" value="{$site.site_name|default='cp-admin 后台管理系统'}" required lay-verify="required" placeholder="网站名称" autocomplete="off" class="layui-input">
                            </div>
                        </div>

                        <div class="layui-form-item">
                            <label class="layui-form-label">ICP备</label>
                            <div class="layui-input-block">
                                <input type="text" name="site_info[site_icp]" value="{$site.site_icp|default=''}"  placeholder="ICP备" autocomplete="off" class="layui-input">
                            </div>
                        </div>

                        <div class="layui-form-item">
                            <label class="layui-form-label">公网安备</label>
                            <div class="layui-input-block">
                                <input type="text" name="site_info[site_gwa]" value="{$site.site_gwa|default=''}"  placeholder="公网安备" autocomplete="off" class="layui-input">
                            </div>
                        </div>

                        <div class="layui-form-item">
                            <label class="layui-form-label">站长邮箱</label>
                            <div class="layui-input-block">
                                <input type="email" name="site_info[site_admin_email]" value="{$site.site_admin_email|default=''}"  placeholder="站长邮箱" autocomplete="off" class="layui-input">
                            </div>
                        </div>

                        <div class="layui-form-item">
                            <label class="layui-form-label">统计代码</label>
                            <div class="layui-input-block">
                                <textarea  name="site_info[site_analytics]"  class="layui-textarea" placeholder="统计代码">{$site.site_analytics|default=''}</textarea>
                            </div>
                        </div>

                        <div class="layui-form-item">
                            <label class="layui-form-label">版权信息</label>
                            <div class="layui-input-block">
                                <textarea  name="site_info[site_copyright]" class="layui-textarea" placeholder="版权信息">{$site.site_copyright|default=''}</textarea>
                            </div>
                        </div>

                        <div class="layui-form-item">
                            <label class="layui-form-label">Logo <span class="request-tips">*</span></label>
                            <div class="layui-input-block">
                                <button type="button" class="layui-btn" id="test1">
                                    <i class="layui-icon">&#xe67c;</i>上传封面
                                </button>
                            </div>
                            <div class="layui-input-block">
                                <table class="layui-table" id="app-photo">
                                    {if $site.photo}
                                    <tr>
                                        <td>
                                            <input type="text" class="layui-input" name="site_info[photo]" value="{$site.photo}">
                                        </td>
                                        <td>
                                            <img src="{:_get_image_preview_url($site.photo)}" alt="" width="150" >
                                        </td>
                                        <td>
                                            <a href="javascript:;" class="layui-btn layui-btn-danger layui-btn-xs del-photos-btn">删除</a>
                                        </td>
                                    </tr>
                                    {/if}
                                </table>
                            </div>
                        </div>

                        <div class="layui-form-item">
                            <label class="layui-form-label">众众号 <span class="request-tips">*</span></label>
                            <div class="layui-input-block">
                                <button type="button" class="layui-btn" id="test2">
                                    <i class="layui-icon">&#xe67c;</i>上传二维码
                                </button>
                            </div>
                            <div class="layui-input-block">
                                <table class="layui-table" id="app-photos">
                                    <tr>
                                        <td>
                                            <input type="text" class="layui-input" name="site_info[official]" value="{$site.official|default=''}">
                                        </td>
                                        <td>
                                            <img src="{:_get_image_preview_url(isset($site.official)?$site.official:'')}" alt="" width="150" >
                                        </td>
                                    </tr>
                                </table>
                            </div>
                        </div>

                    </div>

                    <div class="layui-tab-item">

                        <div class="layui-form-item">
                            <label class="layui-form-label">SEO标题</label>
                            <div class="layui-input-block">
                                <input type="text" name="site_info[site_seo_title]"   value="{$site.site_seo_title|default=''}"  placeholder="SEO标题" autocomplete="off" class="layui-input">
                            </div>
                        </div>

                        <div class="layui-form-item">
                            <label class="layui-form-label">SEO关键字</label>
                            <div class="layui-input-block">
                                <input type="text" name="site_info[site_seo_keywords]"  value="{$site.site_seo_keywords|default=''}" placeholder="SEO关键字" autocomplete="off" class="layui-input">
                            </div>
                        </div>

                        <div class="layui-form-item">
                            <label class="layui-form-label">SEO描述</label>
                            <div class="layui-input-block">
                                <textarea name="site_info[site_seo_description]" class="layui-textarea" placeholder="SEO描述">{$site.site_seo_description|default=''}</textarea>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-input-block">
                    <div class="layui-text">带 * 号的为必填项</div>
                    <button class="layui-btn" lay-submit lay-filter="formDemo">保存</button>
                </div>
            </div>
        </form>
    </div>
</div>
